﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<YourStore.Models.OrderDetail>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	MyOrder
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<div id="right">
    <h2>My Orders</h2>
    <p>&nbsp;</p>
    <table id="storemanager" class="admin">
        <tr>
            <th width="60">Order Id</th>
            <th width="90">Order Date</th>
           <th width="250">Product Name</th>
           <th width="80">Price</th>
        </tr>

    <% foreach (var item in Model) { %>
        <tr>
            
            <td><%: item.OrderId%></td>
            <td><%: item.Order.OrderDate.ToString("dd-MM-yyyy") %></td>
            <td><%: item.Product.Name%></td>
            <td> $ <%: item.Product.Price%></td>
         </tr>
    
    <% } %>

    </table>
    </div>

</asp:Content>
